<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>Table of Contents - resolv: Ruby Standard Library Documentation</title>


<script src="./js/navigation.js" defer></script>
<script src="./js/search.js" defer></script>
<script src="./js/search_index.js" defer></script>
<script src="./js/searcher.js" defer></script>
<script src="./js/darkfish.js" defer></script>

<script src="./js/jquery-3.2.0.min.js"></script>

<script src="./js/vue.min.js"></script>
<script src="./js/js.cookie.min.js"></script>

<link href="./css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="./css/rdoc.css" rel="stylesheet">
<link href="./css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "./";
  var index_rel_prefix = "./";
  var darkModeCsseHref = "./css/rdoc-dm.css"
  var defaultModeCssHref = "./css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" class="table-of-contents">
  <!-- table_of_contents.html -->
  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0.preview2 NOT FOUND -->
  </div> <!-- end action bar -->

  <div class='wrapper hdiv'>

    

    <div id='extraz'><div class='adzbox-index'  >
        
      </div>         
    </div>

    <main role="main">
    <h1 class="class">Table of Contents - resolv: Ruby Standard Library Documentation</h1>


          <h2 id="classes">Classes and Modules</h2>
          <ul>
              <li class="class">
                <a href="Resolv.html">Resolv</a>

                <ul>
                    <li><a href="Resolv.html#label-Bugs">Bugs</a>
                    </ul>
                  </li>
              <li class="class">
                <a href="Resolv/DNS.html">Resolv::DNS</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Config.html">Resolv::DNS::Config</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Config/NXDomain.html">Resolv::DNS::Config::NXDomain</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Config/OtherResolvError.html">Resolv::DNS::Config::OtherResolvError</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/DecodeError.html">Resolv::DNS::DecodeError</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/EncodeError.html">Resolv::DNS::EncodeError</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Name.html">Resolv::DNS::Name</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Query.html">Resolv::DNS::Query</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Requester.html">Resolv::DNS::Requester</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Requester/RequestError.html">Resolv::DNS::Requester::RequestError</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Resource.html">Resolv::DNS::Resource</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Resource/ANY.html">Resolv::DNS::Resource::ANY</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Resource/CNAME.html">Resolv::DNS::Resource::CNAME</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Resource/DomainName.html">Resolv::DNS::Resource::DomainName</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Resource/Generic.html">Resolv::DNS::Resource::Generic</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Resource/HINFO.html">Resolv::DNS::Resource::HINFO</a>
                  </li>
              <li class="module">
                <a href="Resolv/DNS/Resource/IN.html">Resolv::DNS::Resource::IN</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Resource/IN/A.html">Resolv::DNS::Resource::IN::A</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Resource/IN/AAAA.html">Resolv::DNS::Resource::IN::AAAA</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Resource/IN/SRV.html">Resolv::DNS::Resource::IN::SRV</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Resource/IN/WKS.html">Resolv::DNS::Resource::IN::WKS</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Resource/LOC.html">Resolv::DNS::Resource::LOC</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Resource/MINFO.html">Resolv::DNS::Resource::MINFO</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Resource/MX.html">Resolv::DNS::Resource::MX</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Resource/NS.html">Resolv::DNS::Resource::NS</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Resource/PTR.html">Resolv::DNS::Resource::PTR</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Resource/SOA.html">Resolv::DNS::Resource::SOA</a>
                  </li>
              <li class="class">
                <a href="Resolv/DNS/Resource/TXT.html">Resolv::DNS::Resource::TXT</a>
                  </li>
              <li class="class">
                <a href="Resolv/Hosts.html">Resolv::Hosts</a>
                  </li>
              <li class="class">
                <a href="Resolv/IPv4.html">Resolv::IPv4</a>
                  </li>
              <li class="class">
                <a href="Resolv/IPv6.html">Resolv::IPv6</a>
                  </li>
              <li class="module">
                <a href="Resolv/LOC.html">Resolv::LOC</a>
                  </li>
              <li class="class">
                <a href="Resolv/LOC/Alt.html">Resolv::LOC::Alt</a>
                  </li>
              <li class="class">
                <a href="Resolv/LOC/Coord.html">Resolv::LOC::Coord</a>
                  </li>
              <li class="class">
                <a href="Resolv/LOC/Size.html">Resolv::LOC::Size</a>
                  </li>
              <li class="class">
                <a href="Resolv/MDNS.html">Resolv::MDNS</a>
                  </li>
              <li class="class">
                <a href="Resolv/ResolvError.html">Resolv::ResolvError</a>
                  </li>
              <li class="class">
                <a href="Resolv/ResolvTimeout.html">Resolv::ResolvTimeout</a>
                  </li>
                </ul>

                <h2 id="methods">Methods</h2>
                <ul>

                    <li class="method">
                      <a href="Resolv/DNS/Name.html#method-c-create">::create</a>
                      &mdash;
                      <span class="container">Resolv::DNS::Name</span>

                    <li class="method">
                      <a href="Resolv/IPv4.html#method-c-create">::create</a>
                      &mdash;
                      <span class="container">Resolv::IPv4</span>

                    <li class="method">
                      <a href="Resolv/IPv6.html#method-c-create">::create</a>
                      &mdash;
                      <span class="container">Resolv::IPv6</span>

                    <li class="method">
                      <a href="Resolv/LOC/Size.html#method-c-create">::create</a>
                      &mdash;
                      <span class="container">Resolv::LOC::Size</span>

                    <li class="method">
                      <a href="Resolv/LOC/Coord.html#method-c-create">::create</a>
                      &mdash;
                      <span class="container">Resolv::LOC::Coord</span>

                    <li class="method">
                      <a href="Resolv/LOC/Alt.html#method-c-create">::create</a>
                      &mdash;
                      <span class="container">Resolv::LOC::Alt</span>

                    <li class="method">
                      <a href="Resolv.html#method-c-each_address">::each_address</a>
                      &mdash;
                      <span class="container">Resolv</span>

                    <li class="method">
                      <a href="Resolv.html#method-c-each_name">::each_name</a>
                      &mdash;
                      <span class="container">Resolv</span>

                    <li class="method">
                      <a href="Resolv.html#method-c-getaddress">::getaddress</a>
                      &mdash;
                      <span class="container">Resolv</span>

                    <li class="method">
                      <a href="Resolv.html#method-c-getaddresses">::getaddresses</a>
                      &mdash;
                      <span class="container">Resolv</span>

                    <li class="method">
                      <a href="Resolv.html#method-c-getname">::getname</a>
                      &mdash;
                      <span class="container">Resolv</span>

                    <li class="method">
                      <a href="Resolv.html#method-c-getnames">::getnames</a>
                      &mdash;
                      <span class="container">Resolv</span>

                    <li class="method">
                      <a href="Resolv.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv</span>

                    <li class="method">
                      <a href="Resolv/Hosts.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::Hosts</span>

                    <li class="method">
                      <a href="Resolv/DNS.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::DNS</span>

                    <li class="method">
                      <a href="Resolv/DNS/Resource/Generic.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::DNS::Resource::Generic</span>

                    <li class="method">
                      <a href="Resolv/DNS/Resource/DomainName.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::DNS::Resource::DomainName</span>

                    <li class="method">
                      <a href="Resolv/DNS/Resource/SOA.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::DNS::Resource::SOA</span>

                    <li class="method">
                      <a href="Resolv/DNS/Resource/HINFO.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::DNS::Resource::HINFO</span>

                    <li class="method">
                      <a href="Resolv/DNS/Resource/MINFO.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::DNS::Resource::MINFO</span>

                    <li class="method">
                      <a href="Resolv/DNS/Resource/MX.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::DNS::Resource::MX</span>

                    <li class="method">
                      <a href="Resolv/DNS/Resource/TXT.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::DNS::Resource::TXT</span>

                    <li class="method">
                      <a href="Resolv/DNS/Resource/LOC.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::DNS::Resource::LOC</span>

                    <li class="method">
                      <a href="Resolv/DNS/Resource/IN/A.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::DNS::Resource::IN::A</span>

                    <li class="method">
                      <a href="Resolv/DNS/Resource/IN/WKS.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::DNS::Resource::IN::WKS</span>

                    <li class="method">
                      <a href="Resolv/DNS/Resource/IN/AAAA.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::DNS::Resource::IN::AAAA</span>

                    <li class="method">
                      <a href="Resolv/DNS/Resource/IN/SRV.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::DNS::Resource::IN::SRV</span>

                    <li class="method">
                      <a href="Resolv/MDNS.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::MDNS</span>

                    <li class="method">
                      <a href="Resolv/LOC/Size.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::LOC::Size</span>

                    <li class="method">
                      <a href="Resolv/LOC/Coord.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::LOC::Coord</span>

                    <li class="method">
                      <a href="Resolv/LOC/Alt.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Resolv::LOC::Alt</span>

                    <li class="method">
                      <a href="Resolv/DNS.html#method-c-open">::open</a>
                      &mdash;
                      <span class="container">Resolv::DNS</span>

                    <li class="method">
                      <a href="Resolv/DNS/Name.html#method-i-absolute-3F">#absolute?</a>
                      &mdash;
                      <span class="container">Resolv::DNS::Name</span>

                    <li class="method">
                      <a href="Resolv/DNS.html#method-i-close">#close</a>
                      &mdash;
                      <span class="container">Resolv::DNS</span>

                    <li class="method">
                      <a href="Resolv/DNS/Resource/TXT.html#method-i-data">#data</a>
                      &mdash;
                      <span class="container">Resolv::DNS::Resource::TXT</span>

                    <li class="method">
                      <a href="Resolv.html#method-i-each_address">#each_address</a>
                      &mdash;
                      <span class="container">Resolv</span>

                    <li class="method">
                      <a href="Resolv/Hosts.html#method-i-each_address">#each_address</a>
                      &mdash;
                      <span class="container">Resolv::Hosts</span>

                    <li class="method">
                      <a href="Resolv/DNS.html#method-i-each_address">#each_address</a>
                      &mdash;
                      <span class="container">Resolv::DNS</span>

                    <li class="method">
                      <a href="Resolv/MDNS.html#method-i-each_address">#each_address</a>
                      &mdash;
                      <span class="container">Resolv::MDNS</span>

                    <li class="method">
                      <a href="Resolv.html#method-i-each_name">#each_name</a>
                      &mdash;
                      <span class="container">Resolv</span>

                    <li class="method">
                      <a href="Resolv/Hosts.html#method-i-each_name">#each_name</a>
                      &mdash;
                      <span class="container">Resolv::Hosts</span>

                    <li class="method">
                      <a href="Resolv/DNS.html#method-i-each_name">#each_name</a>
                      &mdash;
                      <span class="container">Resolv::DNS</span>

                    <li class="method">
                      <a href="Resolv/DNS.html#method-i-each_resource">#each_resource</a>
                      &mdash;
                      <span class="container">Resolv::DNS</span>

                    <li class="method">
                      <a href="Resolv/DNS.html#method-i-fetch_resource">#fetch_resource</a>
                      &mdash;
                      <span class="container">Resolv::DNS</span>

                    <li class="method">
                      <a href="Resolv.html#method-i-getaddress">#getaddress</a>
                      &mdash;
                      <span class="container">Resolv</span>

                    <li class="method">
                      <a href="Resolv/Hosts.html#method-i-getaddress">#getaddress</a>
                      &mdash;
                      <span class="container">Resolv::Hosts</span>

                    <li class="method">
                      <a href="Resolv/DNS.html#method-i-getaddress">#getaddress</a>
                      &mdash;
                      <span class="container">Resolv::DNS</span>

                    <li class="method">
                      <a href="Resolv.html#method-i-getaddresses">#getaddresses</a>
                      &mdash;
                      <span class="container">Resolv</span>

                    <li class="method">
                      <a href="Resolv/Hosts.html#method-i-getaddresses">#getaddresses</a>
                      &mdash;
                      <span class="container">Resolv::Hosts</span>

                    <li class="method">
                      <a href="Resolv/DNS.html#method-i-getaddresses">#getaddresses</a>
                      &mdash;
                      <span class="container">Resolv::DNS</span>

                    <li class="method">
                      <a href="Resolv.html#method-i-getname">#getname</a>
                      &mdash;
                      <span class="container">Resolv</span>

                    <li class="method">
                      <a href="Resolv/Hosts.html#method-i-getname">#getname</a>
                      &mdash;
                      <span class="container">Resolv::Hosts</span>

                    <li class="method">
                      <a href="Resolv/DNS.html#method-i-getname">#getname</a>
                      &mdash;
                      <span class="container">Resolv::DNS</span>

                    <li class="method">
                      <a href="Resolv.html#method-i-getnames">#getnames</a>
                      &mdash;
                      <span class="container">Resolv</span>

                    <li class="method">
                      <a href="Resolv/Hosts.html#method-i-getnames">#getnames</a>
                      &mdash;
                      <span class="container">Resolv::Hosts</span>

                    <li class="method">
                      <a href="Resolv/DNS.html#method-i-getnames">#getnames</a>
                      &mdash;
                      <span class="container">Resolv::DNS</span>

                    <li class="method">
                      <a href="Resolv/DNS.html#method-i-getresource">#getresource</a>
                      &mdash;
                      <span class="container">Resolv::DNS</span>

                    <li class="method">
                      <a href="Resolv/DNS.html#method-i-getresources">#getresources</a>
                      &mdash;
                      <span class="container">Resolv::DNS</span>

                    <li class="method">
                      <a href="Resolv/DNS/Name.html#method-i-subdomain_of-3F">#subdomain_of?</a>
                      &mdash;
                      <span class="container">Resolv::DNS::Name</span>

                    <li class="method">
                      <a href="Resolv/DNS.html#method-i-timeouts-3D">#timeouts=</a>
                      &mdash;
                      <span class="container">Resolv::DNS</span>

                    <li class="method">
                      <a href="Resolv/IPv4.html#method-i-to_name">#to_name</a>
                      &mdash;
                      <span class="container">Resolv::IPv4</span>

                    <li class="method">
                      <a href="Resolv/IPv6.html#method-i-to_name">#to_name</a>
                      &mdash;
                      <span class="container">Resolv::IPv6</span>

                    <li class="method">
                      <a href="Resolv/DNS/Name.html#method-i-to_s">#to_s</a>
                      &mdash;
                      <span class="container">Resolv::DNS::Name</span>
                    </ul>
                    </main>
                  </div> 

<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is a service of <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>, purveyors of fine <a href='https://jamesbritt.bandcamp.com/'>dance noise</a></p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

